package com.njust.mapper;

import com.njust.dataobject.VtInfo;
import com.njust.dataobject.VtInfoExample;

import java.math.BigDecimal;
import java.util.List;

import com.njust.vo.HistoryVO.OptiAndAvgVO;
import org.apache.ibatis.annotations.Param;

public interface VtInfoMapper {
    int countByExample(VtInfoExample example);

    int deleteByExample(VtInfoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(VtInfo record);

    int insertSelective(VtInfo record);

    List<VtInfo> selectByExample(VtInfoExample example);

    VtInfo selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") VtInfo record, @Param("example") VtInfoExample example);

    int updateByExample(@Param("record") VtInfo record, @Param("example") VtInfoExample example);

    int updateByPrimaryKeySelective(VtInfo record);

    int updateByPrimaryKey(VtInfo record);


    //新添加的
   List<BigDecimal> findfzValue(@Param("trainOnlyIdList") List<Long> trainOnlyIdList);

    List<BigDecimal> findqdValue(@Param("trainOnlyIdList") List<Long> trainOnlyid);

    List<BigDecimal> findjfgValue(@Param("trainOnlyIdList") List<Long> trainOnlyid);



    OptiAndAvgVO findfzValue1(@Param("trainOnlyIdList") List<Long> trainOnlyIdList);
}